package org.jeecg.modules.common.bean.influx;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.jeecg.modules.common.bean.InfluxDbEntity;

import java.time.Instant;

/**
 * @Classname Leak
 * @Description TODO
 * @Date 2022/12/7 11:11
 * @Created by 10835
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Measurement(name = "leak")
public class Leak extends InfluxDbEntity {

    @Column(tag = true)
    private String clientId;
    @Column
    private Double ex_1;
    @Column
    private Double ex_2;
    @Column
    private Double ex_3;
    @Column
    private Double ex_4;
    @Column(timestamp = true)
    private Instant time;
}
